using System;
using System.Collections.Generic;
using System.Text;

namespace Decav.Gatsb.Application
{
    /// <summary>
    /// The event arguments for when a new message is reveived by a
    /// <see cref="MessageListener"/>.
    /// </summary>
    public sealed class MessageReceivedEventArgs : EventArgs
    {
        public MessageReceivedEventArgs(string fileName)
        {
            if (fileName == null)
                throw new ArgumentNullException("fileName");

            _fileName = fileName;
        }

        private string _fileName;

        /// <summary>
        /// Gets the name of the file that the message is in.
        /// </summary>
        public string FileName
        {
            get { return _fileName; }
        }
	
    }
}
